package com.dingreading.cloud.admin.service.impl;

import com.dingreading.cloud.admin.entity.Cmpaypics;
import com.dingreading.cloud.admin.entity.table.CmpaypicsTableDef;
import com.dingreading.cloud.admin.mapper.CmpaypicsMapper;
import com.dingreading.cloud.admin.service.CmpaypicsService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 服务层实现。
 *
 * @author Administrator
 * @since 2023-11-22
 */
@Service
public class CmpaypicsServiceImpl extends BaseServiceImpl<CmpaypicsMapper, Cmpaypics, CmpaypicsTableDef> implements CmpaypicsService {

    @Override
    protected CmpaypicsTableDef getTable() {
        return CmpaypicsTableDef.cmpaypics;
    }


    @Override
    public List<Cmpaypics> getByOrderCode(String orderCode) {
        return getMapper().selectListByCondition(table.orderCode.eq(orderCode));
    }

    @Override
    public List<Cmpaypics> getByOrderCodes(List<String> orderCode) {
        return getMapper().selectListByCondition(table.orderCode.in(orderCode));
    }

}
